package router

import (
	"github.com/gin-gonic/gin"
	"project05_web/src/api"
)

func InitBaseRouter(router *gin.RouterGroup) {
	BaseRouter := router.Group("/v")
	{
		BaseRouter.GET("/captche", api.GetCaptcha_login)        //这个是账号密码验证码调用的接口 POST
		BaseRouter.POST("/captche_mail", api.GetCaptcha_mail)   //这个是邮箱验证码调用接口 POST
		BaseRouter.POST("/captche_phone", api.GetCaptcha_phone) //这个是手机号验证码调用接口 POST
		//发送登录的邮箱验证码
		BaseRouter.GET("/captchebyemailtoregister/:email", api.GetValidateCode)
		//发送注册的邮箱验证码
		BaseRouter.GET("/captchebyemailtologin/:email", api.GetLoginValidateCode)
	}
}
